﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/// <summary>
/// Summary description for DateTimeExtension
/// </summary>
public static class DateTimeExtension
{
    public static string ToShortDate(this System.DateTime dateTime)
    {
        return dateTime.ToString(define.ShortDateFormat, System.Globalization.CultureInfo.InvariantCulture);
    }

    public static string ToLongDate(this System.DateTime dateTime)
    {
        return dateTime.ToString(define.LongDateFormat, System.Globalization.CultureInfo.InvariantCulture);
    }
}
